package com.dailyblue.java.spring.ioc.demo4;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext beans = new ClassPathXmlApplicationContext("spring.xml");
        DemoA da = beans.getBean(DemoA.class);
        DemoB db = beans.getBean("demoB",DemoB.class);
        System.out.println(da);
        System.out.println(db);
    }
}
